<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    var a = 100;
    var b = 15;
    var c = "8";
    /**
     * 如果+两边出现的都是数字，
     * 这时+起到的作用是算术运算的作用
    */
    console.log(a + b); 
    /**
     * 如果+两边出现的有字符串
     * 这时+起到的作用是字符串拼接的作用
    */
    console.log(b + c);
    console.log(typeof(b+c));

    var x = 3;
    var y = "3";
    var z = 5;
    z += y;
    var a = y + z;
    document.write(x+y+'<br/>');
    document.write(z+'<br/>');
    document.write(a+'<br/>');
    document.write(x+y+z+'<br/>');

</script>
</html>